package com.daka.dao;

import com.daka.entity.Topic;
import com.daka.mybatis.SQLMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author beliveli on 2016/3/31 0031.
 */
@SuppressWarnings("unused")
@Repository(value = "topicMapper")
@SQLMapper
public interface TopicMapper {

    Topic selectById(int id);

    List<Topic> selectAll();

    int save(Topic topic);

    int updateById(Topic topic);

    int updateDisplay(Topic topic);

    int updateTop(Topic topic);
}
